package day03;

/**
 if..else结构演示
 */
public class IfElseDemo {
    public static void main(String[] args) {
        int price=200;
        if (price>=500){
            price*=0.8;
            System.out.println("优惠后价格"+price);
        }else {
            int service =(int)(price*1.1-price);
            price=service+price;
            System.out.println("消费太低无优惠且收"+service+"服务费"+"共计"+price);
        }
    }
}
